package com.my.vote.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sskj.core.entity.BaseEntity;

/***
 * 投票答案
 * 
 * @author chenliang
 *
 */
@Entity
@Table(name = "vote_answer")
public class VoteAnswer extends BaseEntity {

	private static final long serialVersionUID = 2561516730156645267L;

	/** 主题ID */
	@Column(length = 36)
	private String subjectId;

	/** 投票Id */
	@Column(length = 36)
	private String questionId;

	/** 结果 */
	@Column(length = 500)
	private String answer;

	/** 投票人openId */
	@Column(length = 36)
	private String voterId;

	/** 投票时间 */
	@Column
	private Date voteTime;

	/** 删除标记 */
	@Column
	private boolean delFlag;

	public String getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(String subjectId) {
		this.subjectId = subjectId;
	}

	public boolean isDelFlag() {
		return delFlag;
	}

	public void setDelFlag(boolean delFlag) {
		this.delFlag = delFlag;
	}

	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getVoterId() {
		return voterId;
	}

	public void setVoterId(String voterId) {
		this.voterId = voterId;
	}

	public Date getVoteTime() {
		return voteTime;
	}

	public void setVoteTime(Date voteTime) {
		this.voteTime = voteTime;
	}

}
